package com.homelock.common.util;

import java.util.List;

import com.github.pagehelper.Page;
import com.homelock.common.vo.PageResp;

public class PageUtils {

	public static PageResp getPageInfo(Page page,int startPage,List list){
		PageResp result = new PageResp();
		result.setTotal(page.getTotal());
		result.setRows(list);
		result.setSize(page.getPageSize());
		result.setNum(startPage);
		return result;
	}
}
